import getlink from "@/api/getapi.js"
let TvHotM = {
    state:{
        tvhot:""
    },
    mutations:{
        UPTVHOTDATA(state,payload){
            state.tvhot=payload
        }
    },
    actions:{
        LINK_TVHOT_DATA(contvhot,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.tvhot,"tvhot")
                contvhot.commit("UPTVHOTDATA",ok.data.tvhot)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default TvHotM;

 
